// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import ele from 'element-ui'
import App from './App'
import router from './router'
import store from './store'
import './errorLog'
import * as filters from './utils/filters' // 全局filter

import locale from 'element-ui/lib/locale/lang/zh-CN'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/app.less'
// import 'bootstrap/dist/css/bootstrap.min.css';

Vue.config.productionTip = false
// 添加全局过滤器
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

Vue.use(ele, { locale })

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: {
    App
  }
})
